﻿using System;
using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Sqlite;


namespace 综合同步
{
    public class FixDataBase : DbContext
    {
        public FixDataBase()
        {
        }
        ~FixDataBase(){ Dispose(); }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlite("Data Source="+ LocalServer.GetConfigValue<string>("DataBase"));
        }
        #region 字段
        public DbSet<FTBAnchorInfo> AnchorInfoEntities { get; set; }
        public DbSet<FTBCheckItem> CheckItemEntities { get; set; }
        public DbSet<FTBLineInfo> LineInfoEntities { get; set; }
        public DbSet<FTBPoleInfo> PoleInfoEntities { get; set; }
        public DbSet<FTBStandard> StandardEntities { get; set; }
        public DbSet<FTBStationInfo> StationInfoEntities { get; set; }
        #endregion
    }
}